package com.wudl.govern.db.core;

import lombok.Data;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.List;

/**
 * @author ：wudl
 * @date ：Created in 2022-04-03 21:49
 * @description：
 * @modified By：
 * @version: 1.0
 */

@Data
@Accessors(chain = true)
public class PageResult<T> implements Serializable {
    private static final long serialVersionUID = 1L;

    private Integer pageNum;
    private Integer pageSize;
    private Integer total;
    private List<T> data;

    public PageResult(Integer total, List<T> data) {
        this.total = total;
        this.data = data;
    }
}
